package cn.edu.zafu.bigdata.YinMingyan.chapter05;

/**
 * Test class for the Cube class.
 */
public class CubeTest {

    /**
     * Tests the equality of Cube objects.
     */
    public static void main(String[] args) {
        Cube cube1 = new Cube(2.0, 3.0, 4.0);
        Cube cube2 = new Cube(2.0, 3.0, 4.0);
        Cube cube3 = new Cube(1.0, 1.0, 1.0);
        Cube cube4 = new Cube(0.0, 0.0, 0.0);
        // Test equality with same dimensions
        System.out.println("Cube 1 and Cube 2 are equal: " + cube1.equals(cube2)); // Expected output: true
        // Test inequality with different dimensions
        System.out.println("Cube 1 and Cube 3 are equal: " + cube1.equals(cube3)); // Expected output: false

        System.out.println("Cube 1 and Cube 4 are equal: " + cube1.equals(cube4));
    }
}
